home *** CD-ROM | disk | FTP | other *** search
/ El Mac 8 / El Mac 8.iso / Shareware / Utilities / PowerReplace 4.5.5 / Documentation / 3. For beginners < prev    next >
Encoding:
Text File  |  1996-03-03  |  1.8 KB  |  128 lines  |  [ttro/ttxt]

  1.  
  2.                Learn PowerReplace step by step
  3.                                                                                                  February 26, 1996
  4.                                            
  5. ______________________________________________________________
  6. Example: 
  7. You have three text files: mytext1, mytext2 and mytext3. 
  8. You want to replace the string “print” in these files by the “write”.
  9. ______________________________________________________________
  10. Solution with the help of PowerReplace:
  11.  
  12. (1) Create a text file using any text editor and write the following line in it:
  13. "print" "write"
  14. Name this file “SimpleFilter” and save it.
  15.  
  16. (2) Open PowerReplace, select the menu “File/Make Filter File”. The “Make PowerReplace Filter File” window will appear.  If necessary you can use Balloons Help system.
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. (3) Click the button “Choose File ...”, and select the file “SimpleFilter” that you have created at (1). Check the name “SimpleFilter” appear in the window.
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. (4) Click the button “Make”. The “SimpleFilter” will be turned into a filter file. A progress indicator window will appear during a short time. That is OK.
  61.  
  62. (5) Click the button “Exit” to quit “Make PowerReplace Filter File” window. Then quit PowerReplace application by selecting the Menu “File/Quit”.
  63.  
  64. (6) Put the file “SimpleFilter” into the “Filter” Folder for later use.
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. (7) Open PowerReplace. After confirming that there is an item “SimpleFilter” in the menu “Filter”, select it.
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100. (8) Under Finder, select your files (mytext1, mytext2 and mytext3), drag and drop them onto the PowerReplace icon. That is all.
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121. (9) Normally three new files named “mytext1.new”,  “mytext2.new” and “mytext3.new” have been created in the same folder.
  122.  
  123. _____________________________
  124. Guoniu Han
  125. email: guoniu@math.u-strasbg.fr
  126. http://130.79.4.26/~guoniu/mac/
  127. _____________________________
  128.